package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 光伏版面设备故障信息对象 pm_faults
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class PmFaults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障唯一标识符 */
    private Long faultId;

    /** 设备唯一标识符 */
    @Excel(name = "设备唯一标识符")
    private String deviceId;

    /** 故障类型 */
    @Excel(name = "故障类型")
    private String faultType;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String description;

    /** 故障发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date occurredAt;

    /** 故障解决时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障解决时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resolvedAt;

    /** 故障持续时间（以秒为单位） */
    @Excel(name = "故障持续时间", readConverterExp = "以=秒为单位")
    private Long duration;

    /** 故障严重程度 */
    @Excel(name = "故障严重程度")
    private String severity;

    /** 其他备注信息 */
    @Excel(name = "其他备注信息")
    private String notes;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String model;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createUser;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createId;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Excel(name = "状态")
    private String status;

    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setFaultType(String faultType) 
    {
        this.faultType = faultType;
    }

    public String getFaultType() 
    {
        return faultType;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setOccurredAt(Date occurredAt) 
    {
        this.occurredAt = occurredAt;
    }

    public Date getOccurredAt() 
    {
        return occurredAt;
    }
    public void setResolvedAt(Date resolvedAt) 
    {
        this.resolvedAt = resolvedAt;
    }

    public Date getResolvedAt() 
    {
        return resolvedAt;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setSeverity(String severity) 
    {
        this.severity = severity;
    }

    public String getSeverity() 
    {
        return severity;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultId", getFaultId())
            .append("deviceId", getDeviceId())
            .append("faultType", getFaultType())
            .append("description", getDescription())
            .append("occurredAt", getOccurredAt())
            .append("resolvedAt", getResolvedAt())
            .append("duration", getDuration())
            .append("severity", getSeverity())
            .append("notes", getNotes())
            .append("location", getLocation())
            .append("manufacturer", getManufacturer())
            .append("model", getModel())
            .append("createUser", getCreateUser())
            .append("createId", getCreateId())
            .append("status", getStatus())
            .toString();
    }
}
